<?php /* Smarty version 2.6.26, created on 2013-02-21 16:35:24
         compiled from mcost_list_quantity_form.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'mcost_list_quantity_form.html', 73, false),array('modifier', 'escape', 'mcost_list_quantity_form.html', 98, false),array('modifier', 'number_format', 'mcost_list_quantity_form.html', 109, false),)), $this); ?>
<?php echo '<?xml'; ?>
 version="1.0" encoding="utf-8"<?php echo '?>'; ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Script-Type" content="text/javascript" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<title>コントロールパネル</title>
		<link rel="stylesheet" href="./assets/styles/default.css" type="text/css" />

		<link rel="stylesheet" href="./assets/styles/ui-lightness/ui.all.css" type="text/css" />

		<link rel="stylesheet" href="./assets/styles/ui-lightness/jquery-ui-1.7.3.custom.css" type="text/css" />
		<link rel="stylesheet" href="./assets/styles/dialog.css" type="text/css" />

		<script src="assets/scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
		<script src="assets/scripts/jquery-ui-1.7.3.custom.min.js" type="text/javascript"></script>
		<script src="assets/scripts/ui/ui.dialog.js" type="text/javascript"></script>

		<script src="assets/scripts/menu.js" type="text/javascript"></script>
		<script src="assets/scripts/table.js" type="text/javascript"></script>
		<script type="text/javascript" src="./tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
		<script type="text/javascript" src="./assets/scripts/editor.js"></script>
		<script type="text/javascript" src="./assets/scripts/ui/ui.datepicker.js"></script>
		<script type="text/javascript" src="./assets/scripts/ui/ui.core.js"></script>
		
		<script type="text/javascript">
		$(function() {
			$('.message').fadeIn("slow");
			$('.btn_regist').click(function(){
				if( confirm('登録してよろしいですか？') ){
					document.fm.mode.value = 'input';
					document.fm.submit();
				}
			});
			$('.btn_update').click(function(){
				if( confirm('更新してよろしいですか？') ){
					document.fm.mode.value = 'input';
					document.fm.submit();
				}
			});
			$('.btn_return').click(function(){
				location.href = "mcost_list_quantity_index.php?hist=2";
			});
		});
		</script>
	</head>
	<body id="">
<?php echo $this->_tpl_vars['menu']; ?>

<?php echo $this->_tpl_vars['logout']; ?>

		<div id="container"><div class="wrapper">
			<h2>経費出力一覧</h2>
			<ul class="submenu clearfix">
				<li><a href="mcost_list_index.php">経費・予実比一覧</a></li>
				<li><a href="mcost_list_month_index.php">月別集計</a></li>
				<li><a href=mcost_list_sum_index.php>累計一覧</a></li>
				<li>経準高管理</li>
				<li><a href="mcost_list_quantity_import.php">経準高計画一括登録</a></li>
			</ul>
			<h3>経準高一覧</h3>
			<h3>経準高<?php if ($this->_tpl_vars['forms']['id'] == ''): ?>登録<?php else: ?>更新<?php endif; ?><?php if ($this->_tpl_vars['phase'] == 'complete'): ?>完了<?php endif; ?></h3>
<?php if ($this->_tpl_vars['phase'] == 'input'): ?>
			<p class="message">内容を確認し、<?php if ($this->_tpl_vars['forms']['id'] == ''): ?>登録<?php else: ?>更新<?php endif; ?>ボタンをクリックしてください。</p>
			<form name="fm" action="mcost_list_quantity_form.php" method="post">
				<table class="formTable">
					<tbody>
<?php if ($this->_tpl_vars['forms']['id'] != ''): ?>
						<tr>
							<th>更新日</th>
							<td>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['u_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y/%m/%d %H:%M") : smarty_modifier_date_format($_tmp, "%Y/%m/%d %H:%M")); ?>
<input type="hidden" name="u_time" value="<?php echo $this->_tpl_vars['forms']['u_time']; ?>
" />
							</td>
						</tr>
						<tr>
							<th>更新者</th>
							<td>
								<?php echo $this->_tpl_vars['forms']['m_user_name']; ?>
<input type="hidden" name="m_user_name" value="<?php echo $this->_tpl_vars['forms']['m_user_name']; ?>
" />
							</td>
						</tr>
						<tr>
							<th>週名</th>
							<td>
								<?php echo $this->_tpl_vars['forms']['weekname']; ?>

							</td>
						</tr>
						<tr>
							<th>ID</th>
							<td>
								<?php echo $this->_tpl_vars['forms']['id']; ?>

							</td>
						</tr>
<?php endif; ?>
						<tr>
							<th>店舗コード</th>
							<td>
								<input type="text" name="shop_cd" class="dtext" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['shop_cd'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  maxlangth="100"  readonly/>
							</td>
						</tr>
						<tr>
							<th>店名</th>
							<td>
								<input type="ｄtext" name="shop_name" class="dtext" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['shop_name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  maxlangth="100"  readonly/>
							</td>
						</tr><tr>
							<th>経準高経費<br>本年（見込）</th>
							<td>
								<input type="ｄtext" name="now_cost" class="dtext" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['now_cost'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
"  maxlangth="100"  readonly/>
							</td>
						</tr><tr>
							<th style="width:150px;">※経準高経費　計画</th>
							<td>
								<input type="text" name="plane_cost" class="text" value="<?php echo $this->_tpl_vars['forms']['plane_cost']; ?>
"  maxlangth="100"  /><?php echo $this->_tpl_vars['err']['plane_cost']; ?>

							</td>
						</tr><tr>
							<th>経準高経費前年</th>
							<td>
								<input type="ｄtext" name="last_cost" class="dtext" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['last_cost'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
"  maxlangth="100"  readonly/>
							</td>
						</tr><tr>
							<th style="width:130px;">経準高経費計画比</th>
							<td>
								<input type="ｄtext" name="plane_rate" class="dtext" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['plane_rate'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
%"  maxlangth="100"  readonly/>
							</td>
						</tr><tr>
							<th style="width:143px;">経準高経費計画差異</th>
							<td>
								<input type="ｄtext" name="plane_inc" class="dtext" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['plane_inc'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
"  maxlangth="100"  readonly/>
							</td>
						</tr><tr>
							<th style="width:130px;">経準高経費前年比</th>
							<td>
								<input type="ｄtext" name="last_rate" class="dtext" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['last_rate'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
%"  maxlangth="100"  readonly/>
							</td>
						</tr><tr>
							<th style="width:143px;">経準高経費前年差異</th>
							<td>
								<input type="ｄtext" name="last_inc" class="dtext" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['last_inc'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
"  maxlangth="100"  readonly/>
							</td>
						</tr>
					</tbody>
				</table>
				<p class="button">
				<button type="button" class="btn_return" class="submit"><span>戻る</span></button>
<?php if ($this->_tpl_vars['forms']['id'] != ''): ?>
					<button type="button" class="btn_update" class="submit"><span>更新</span></button>
<?php else: ?>
					<button type="button" class="btn_regist" class="submit"><span>登録</span></button>
<?php endif; ?>
				</p>
				<input type="hidden" name="matrix_cd" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['matrix_cd'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
				<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['forms']['id']; ?>
" />
				<input type="hidden" name="mode" value="" />
			</form>
<div id="dialog" >
</div>
<?php endif; ?>
<?php if ($this->_tpl_vars['phase'] == 'complete'): ?>
			<p class="message"><?php echo $this->_tpl_vars['message']; ?>
</p>
			<ul>
				<li>>> <a href="mcost_list_quantity_index.php?hist=2">一覧ページに戻る</a></li>
				<li>>> <a href="mcost_list_quantity_form.php?id=<?php echo $this->_tpl_vars['forms']['shop_cd']; ?>
&m=<?php echo $this->_tpl_vars['forms']['matrix_cd']; ?>
">更新</a></li>
			</ul>
<?php endif; ?>

		</div></div>
		<?php echo $this->_tpl_vars['footer']; ?>

	</body>
</html>